package com.wx.chapter10.codeblock_;

/**
 * ClassName:exercise01
 * Package :com.wx.chapter10.codeblock_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/6/3 - 22:15
 */
public class exercise01 {
    public static void main(String[] args) {
        System.out.println("total = "+ Person.total); //100
        System.out.println("total = "+ Person.total); //100
    }
}

class Person {
    public static int total;

    static {
        total = 100;
        System.out.println("in static block!");
    }
}
